package com.wen.springbootorderrabbitmqconsumer.service.direct;

import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Service;

@RabbitListener(queues = {"email_direct_queue"})
@Service
public class DirectEmailConsumer {


    @RabbitHandler
    public void reviceMessage(String message){
        System.out.println("email_direct,接收到的消息是==》"+message);
    }


}
